#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QString>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    QString num1= this->ui->lineEdit->text();
    QString num2= this->ui->lineEdit_2->text();
    int s=num1.toInt()+num2.toInt();
    QString sum=QString::number(s);
    this->ui->label->setText(sum);
}
